import java.net.Authenticator;
import java.net.PasswordAuthentication;


public class BasicAuthenticatorImpl extends Authenticator {

	private final PasswordAuthentication passwordAuthentication;

	public BasicAuthenticatorImpl(String username, String password) {
		passwordAuthentication = new PasswordAuthentication(username, password.toCharArray());
	}
	@Override
	protected PasswordAuthentication getPasswordAuthentication() {
		return passwordAuthentication ;
	}
	
}
